package cutetd.model;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Text;

@PersistenceCapable ( identityType = IdentityType.APPLICATION, detachable = "true" )
public class M_Msg {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;
	
	@Persistent(serialized = "true")
	private M_User postUser;
	
	@Persistent
	private Text postContent;
	
	@Persistent
	private Date postDate;
	
	@Persistent
	private String guestName;
	
	@Persistent
	private String guestEmail;
	
	@Persistent
	private Text replyContent;
	
	@Persistent
	private String replyUser;
	
	@Persistent
	private Date replyDate;
	
	@Persistent
	private boolean boolGuest;
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public M_User getPostUser() {
		return postUser;
	}

	public void setPostUser(M_User postUser) {
		this.postUser = postUser;
	}

	public Text getPostContent() {
		return postContent;
	}

	public void setPostContent(Text postContent) {
		this.postContent = postContent;
	}

	public Date getPostDate() {
		return postDate;
	}

	public void setPostDate(Date postDate) {
		this.postDate = postDate;
	}

	public String getGuestName() {
		return guestName;
	}

	public void setGuestName(String guestName) {
		this.guestName = guestName;
	}

	public String getGuestEmail() {
		return guestEmail;
	}

	public void setGuestEmail(String guestEmail) {
		this.guestEmail = guestEmail;
	}

	public Text getReplyContent() {
		return replyContent;
	}

	public void setReplyContent(Text replyContent) {
		this.replyContent = replyContent;
	}

	public String getReplyUser() {
		return replyUser;
	}

	public void setReplyUser(String replyUser) {
		this.replyUser = replyUser;
	}

	public Date getReplyDate() {
		return replyDate;
	}

	public void setReplyDate(Date replyDate) {
		this.replyDate = replyDate;
	}

	public boolean isBoolGuest() {
		return boolGuest;
	}

	public void setBoolGuest(boolean boolGuest) {
		this.boolGuest = boolGuest;
	}
}
